import Vue from 'vue';
import Router from 'vue-router';
import Home from '@/pages/Home.vue';
import LoginLogs from '@/pages/LoginLogs.vue';
import TransactionLogs from '@/pages/TransactionLogs.vue';
import Operatelogs from '@/pages/Operatelogs.vue';
import Terminalsessions from '@/pages/Terminalsessions.vue';
import DownloadPage from '@/pages/DownloadPage.vue';
import StatPage from '@/pages/StatPage.vue';
import dashboard from '@/pages/dashboard.vue';


Vue.use(Router);

export default new Router({
  mode: 'history',  // 启用 history 模式，避免 URL 中有 `#`
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/login-logs',
      name: 'LoginLogs',
      component: LoginLogs
    },
    {
      path: '/transaction-logs',
      name: 'TransactionLogs',
      component: TransactionLogs
    },
    {
      path: '/operate-logs',
      name: 'Operatelogs',
      component: Operatelogs
    },
    {
      path: '/Terminalsessions-logs',
      name: 'Terminalsessions',
      component: Terminalsessions
    },
    {
      path: '/DownloadPage',
      name: 'DownloadPage',
      component: DownloadPage
    },
    {
      path: '/dashboard',
      name: 'dashboard',
      component: dashboard
    }
  ]
});

